//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.ryzom.nel.misc;

public class CStringIdArray {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CStringIdArray(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CStringIdArray obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_CStringIdArray(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CStringIdArray() {
    this(nelmiscJNI.new_CStringIdArray(), true);
  }

  public void addString(String str, int id) {
    nelmiscJNI.CStringIdArray_addString__SWIG_0(swigCPtr, this, str, id);
  }

  public void addString(String str) {
    nelmiscJNI.CStringIdArray_addString__SWIG_1(swigCPtr, this, str);
  }

  public int getId(String str, boolean IgnoreIfUnknown) {
    return nelmiscJNI.CStringIdArray_getId__SWIG_0(swigCPtr, this, str, IgnoreIfUnknown);
  }

  public int getId(String str) {
    return nelmiscJNI.CStringIdArray_getId__SWIG_1(swigCPtr, this, str);
  }

  public String getString(int id) {
    return nelmiscJNI.CStringIdArray_getString(swigCPtr, this, id);
  }

  public void resize(int size) {
    nelmiscJNI.CStringIdArray_resize(swigCPtr, this, size);
  }

  public int size() {
    return nelmiscJNI.CStringIdArray_size(swigCPtr, this);
  }

  public SWIGTYPE_p_std__setT_std__string_t getNeedToAskedStringArray() {
    return new SWIGTYPE_p_std__setT_std__string_t(nelmiscJNI.CStringIdArray_getNeedToAskedStringArray(swigCPtr, this), false);
  }

  public SWIGTYPE_p_std__setT_std__string_t getAskedStringArray() {
    return new SWIGTYPE_p_std__setT_std__string_t(nelmiscJNI.CStringIdArray_getAskedStringArray(swigCPtr, this), false);
  }

  public void moveNeedToAskToAskedStringArray() {
    nelmiscJNI.CStringIdArray_moveNeedToAskToAskedStringArray(swigCPtr, this);
  }

  public void ignoreAllUnknownId(boolean b) {
    nelmiscJNI.CStringIdArray_ignoreAllUnknownId(swigCPtr, this, b);
  }

  public void clear() {
    nelmiscJNI.CStringIdArray_clear(swigCPtr, this);
  }

  public void display() {
    nelmiscJNI.CStringIdArray_display(swigCPtr, this);
  }

}
